<!--
 * @Version: 1.0
 * @Date: 2021-04-22 19:08:30
 * @LastEditTime: 2021-11-09 18:05:57
 * @Description:
-->
<template>
  <div class="header_title_box">
    <h2>{{ title }}</h2>
    <p class="main-style red" @click="editClick">{{ leftTitle }}</p>
    <p class="main-style" style="margin-left:50px">{{ centerTitle }}</p>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      defalut: '',
      type: String
    },
    leftTitle: {
      defalut: '',
      required: false,
      type: String
    },
    centerTitle: {
      defalut: '',
      required: false,
      type: String
    }
  },
  methods: {
    editClick() {
      this.$emit('editClick')
    }
  }
}
</script>

<style lang="scss" scoped>
.main-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f2f2f2;
}
.main-style {
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  cursor: pointer;
}
.red {
  color: #ff4444;
}
p {
  margin: 0;
}
</style>
